#define _CRT_SECURE_NO_WARNINGS 1

#include"heal.h"

void test()
{
	Heap hp;
	int arr[10] = { 9,6,3,8,5,2,7,4,1,0 };
	HeapCreate(&hp, arr, 10);
	printf("%d\n", HeapSize(&hp));
	//HeapPush(&hp, 10);

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	HeapDestory(&hp);
}

int main()
{
	test();
	return 0;
}